//
//  ZLTableViewEditConfig.h
//  ZLCustomViews
//
//  Created by 赵振磊 on 2024/3/20.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/// delete
typedef void(^ZLTableViewEditConfigAction)(NSIndexPath *indexPath);

@interface ZLTableViewEditConfig : NSObject
/// 标题
@property (nonatomic, copy) NSString *title;
/// 文字色
@property (nonatomic, strong) UIColor *titleColor;
/// 背景色
@property (nonatomic, strong) UIColor *backgroundColor;
/// 点击事件
@property (nonatomic, copy) ZLTableViewEditConfigAction action;

+ (instancetype)config:(NSString *)title action:(ZLTableViewEditConfigAction)action;
+ (instancetype)config:(NSString *)title titleColor:(nullable UIColor *)titleColor backgroundColor:(nullable UIColor *)backgroundColor action:(ZLTableViewEditConfigAction)action;
@end

NS_ASSUME_NONNULL_END
